// 员工管理的路由规则
import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      // meta中的title控制的是左侧链接的文本, icon控制的图标
      meta: { title: '员工', icon: 'people' }
    },
    {
      // path: '/employees/detail',
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    },
    // 员工打印页   /employees/print/123123?type=personal
    {
      path: 'print/:id',
      component: () => import('@/views/employees/print'),
      hidden: true
    }
  ]
}
